package com.un.ebs.purchase.domain;

import java.util.Date;
import com.un.ebs.purchase.enums.PurchaseOrderTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (PurchaseOrderExt)表实体类
 *
 * @author liubo
 * @since 2020-11-09 15:36:13
 */
@Data
@Component
@TableName("v_purchase_order_ext")
@SuppressWarnings("serial")
public class PurchaseOrderExt extends Model<PurchaseOrderExt> {

                
    @DbField(name = "id",  length = 40 , precision = 0)
    private String id;
                
    @DbField(name = "sale_order_id",  length = 40 , precision = 0)
    private String saleOrderId;
                
    @DbField(name = "code",  length = 100 , precision = 0)
    private String code;
                
    @DbField(name = "contract_code",  length = 50 , precision = 0)
    private String contractCode;
                
    @DbField(name = "is_frame",  length = -1 , precision = 0)
    private Boolean isFrame;
                
    @DbField(name = "supplier_ent_id",  length = 40 , precision = 0)
    private String supplierEntId;
                
    @DbField(name = "supplier_ent_name",  length = 100 , precision = 0)
    private String supplierEntName;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at",  length = 40 , precision = 0)
    private String createAt;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at_name",  length = 100 , precision = 0)
    private String createAtName;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;
                
    @DbField(name = "submit_status",  length = -1 , precision = 0)
    private Boolean submitStatus;
                
    @DbField(name = "submit_time",  length = -1 , precision = 0)
    private Date submitTime;
                
    @DbField(name = "submit_at",  length = 40 , precision = 0)
    private String submitAt;
                
    @DbField(name = "submit_at_name",  length = 100 , precision = 0)
    private String submitAtName;
                
    @DbField(name = "personnel_id",  length = 40 , precision = 0)
    private String personnelId;

    @DbField(name = "production_order_id",  length = 40 , precision = 0)
    private String productionOrderId;
                
    @DbField(name = "personnel_name",  length = 100 , precision = 0)
    private String personnelName;
                
    @DbField(name = "plan_deliver_date",  length = -1 , precision = 0)
    private Date planDeliverDate;
                
    @DbField(name = "deliver_time",  length = -1 , precision = 0)
    private Date deliverTime;
                
    @DbField(name = "deliver_at",  length = 40 , precision = 0)
    private String deliverAt;
                
    @DbField(name = "deliver_at_name",  length = 100 , precision = 0)
    private String deliverAtName;
                
    @DbField(name = "deliver_status",  length = -1 , precision = 0)
    private Boolean deliverStatus;
            
    @TableLogic        
    @DbField(name = "is_delete",  length = -1 , precision = 0)
    private Boolean isDelete;
                
    @DbField(name = "is_services",  length = -1 , precision = 0)
    private Boolean isServices;
                
    @DbField(name = "order_type",  length = -1 , precision = 0)
    private PurchaseOrderTypeEnum orderType;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;
                
    @DbField(name = "sum_qty",  length = 38 , precision = 4)
    private Double sumQty;
                
    @DbField(name = "sum_money",  length = 38 , precision = 8)
    private Double sumMoney;
                
    @DbField(name = "sum_accept_qty",  length = 38 , precision = 4)
    private Double sumAcceptQty;


}